package com.zjmzxfzhl.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjmzxfzhl.common.core.base.BaseEntity;
import com.zjmzxfzhl.common.core.validator.constraints.LengthForUtf8;
import java.util.Date;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 【】实体类
 * 
 * @author 张森荣
 */
@Data
@TableName("T_APP_GIT")
public class AppGit extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
//    @NotNull
    @LengthForUtf8(max = 32)
    private String gitId;

    /**
     * 仓库名
     */
    @NotNull
    @LengthForUtf8(max = 255)
    private String name;

    /**
     * 描述
     */
    private String content;

    /**
     * 仓库地址
     */
    @NotNull
    @LengthForUtf8(max = 255)
    private String gitUrl;

    /**
     * 计划完成日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 所属机构ID
     */
    @LengthForUtf8(max = 32)
    private String orgId;

    /**
     * 负责人
     */
    @LengthForUtf8(max = 32)
    private String masterUserId;

}